package ve.lm.hrms_cy.Entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

@TableName("user")
public class User {

    private Long id;
    private String name;
    private String email;
    private String password;
    @TableField("registerTime")
    private LocalDateTime registerTime;
    private String permission;
    private String status;


    public User(){};

    @JsonCreator
    public User(@JsonProperty("name") String name ,@JsonProperty("email") String email ,@JsonProperty("permission") String permission ,@JsonProperty("status") String status ,@JsonProperty("password") String password){


        this.name=name;
        this.email=email;
        this.password=password;
        this.permission=permission;
        this.status=status;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDateTime getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(LocalDateTime registerTime) {
        this.registerTime = registerTime;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
